module.exports = app => {
    let { INTEGER,STRING } = app.Sequelize;
    return app.model.define('Person', {
        id: {type: INTEGER.UNSIGNED, autoIncrement: true, primaryKey: true},
        name: {type: STRING(11), allowNull: false},
        sex: {type: STRING(2), allowNull: false},
        birthday: {type: DECIMAL, allowNull: false},
        address: {type: STRING(100), allowNull: false},
        email: {type: STRING(50), allowNull: false}
    }, {
        tableName: 'person',
        timestamps: false
    });
}